<?php

namespace Lims\MainBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * CreditSchedule
 */
class CreditSchedule
{
    /**
     * @var integer
     */
    private $id;

    /**
     * @var \DateTime
     */
    private $createdDate;

    /**
     * @var integer
     */
    private $days;

    /**
     * @var \DateTime
     */
    private $deadline;

    /**
     * @var string
     */
    private $interestAmount;

    /**
     * @var boolean
     */
    private $isActive;

    /**
     * @var string
     */
    private $mainAmount;

    /**
     * @var string
     */
    private $oneAmount;

    /**
     * @var \DateTime
     */
    private $targetDate;

    /**
     * @var string
     */
    private $totalAmount;

    /**
     * @var \Lims\MainBundle\Entity\Credit
     */
    private $credit;

    /**
     * @var \Lims\MainBundle\Entity\ScheduleType
     */
    private $scheduleType;

    /**
     * @var \Lims\MainBundle\Entity\Users
     */
    private $createdUser;
    
    /**
     * @var string
     */
    private $balance;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set createdDate
     *
     * @param \DateTime $createdDate
     * @return CreditSchedule
     */
    public function setCreatedDate($createdDate)
    {
        $this->createdDate = $createdDate;

        return $this;
    }

    /**
     * Get createdDate
     *
     * @return \DateTime 
     */
    public function getCreatedDate()
    {
        return $this->createdDate;
    }

    /**
     * Set days
     *
     * @param integer $days
     * @return CreditSchedule
     */
    public function setDays($days)
    {
        $this->days = $days;

        return $this;
    }

    /**
     * Get days
     *
     * @return integer 
     */
    public function getDays()
    {
        return $this->days;
    }

    /**
     * Set deadline
     *
     * @param \DateTime $deadline
     * @return CreditSchedule
     */
    public function setDeadline($deadline)
    {
        $this->deadline = $deadline;

        return $this;
    }

    /**
     * Get deadline
     *
     * @return \DateTime 
     */
    public function getDeadline()
    {
        return $this->deadline;
    }

    /**
     * Set interestAmount
     *
     * @param string $interestAmount
     * @return CreditSchedule
     */
    public function setInterestAmount($interestAmount)
    {
        $this->interestAmount = $interestAmount;

        return $this;
    }

    /**
     * Get interestAmount
     *
     * @return string 
     */
    public function getInterestAmount()
    {
        return $this->interestAmount;
    }

    /**
     * Set isActive
     *
     * @param boolean $isActive
     * @return CreditSchedule
     */
    public function setIsActive($isActive)
    {
        $this->isActive = $isActive;

        return $this;
    }

    /**
     * Get isActive
     *
     * @return boolean 
     */
    public function getIsActive()
    {
        return $this->isActive;
    }

    /**
     * Set mainAmount
     *
     * @param string $mainAmount
     * @return CreditSchedule
     */
    public function setMainAmount($mainAmount)
    {
        $this->mainAmount = $mainAmount;

        return $this;
    }

    /**
     * Get mainAmount
     *
     * @return string 
     */
    public function getMainAmount()
    {
        return $this->mainAmount;
    }

    /**
     * Set oneAmount
     *
     * @param string $oneAmount
     * @return CreditSchedule
     */
    public function setOneAmount($oneAmount)
    {
        $this->oneAmount = $oneAmount;

        return $this;
    }

    /**
     * Get oneAmount
     *
     * @return string 
     */
    public function getOneAmount()
    {
        return $this->oneAmount;
    }

    /**
     * Set targetDate
     *
     * @param \DateTime $targetDate
     * @return CreditSchedule
     */
    public function setTargetDate($targetDate)
    {
        $this->targetDate = $targetDate;

        return $this;
    }

    /**
     * Get targetDate
     *
     * @return \DateTime 
     */
    public function getTargetDate()
    {
        return $this->targetDate;
    }

    /**
     * Set totalAmount
     *
     * @param string $totalAmount
     * @return CreditSchedule
     */
    public function setTotalAmount($totalAmount)
    {
        $this->totalAmount = $totalAmount;

        return $this;
    }

    /**
     * Get totalAmount
     *
     * @return string 
     */
    public function getTotalAmount()
    {
        return $this->totalAmount;
    }

    /**
     * Set credit
     *
     * @param \Lims\MainBundle\Entity\Credit $credit
     * @return CreditSchedule
     */
    public function setCredit(\Lims\MainBundle\Entity\Credit $credit = null)
    {
        $this->credit = $credit;

        return $this;
    }

    /**
     * Get credit
     *
     * @return \Lims\MainBundle\Entity\Credit 
     */
    public function getCredit()
    {
        return $this->credit;
    }

    /**
     * Set scheduleType
     *
     * @param \Lims\MainBundle\Entity\ScheduleType $scheduleType
     * @return CreditSchedule
     */
    public function setScheduleType(\Lims\MainBundle\Entity\ScheduleType $scheduleType = null)
    {
        $this->scheduleType = $scheduleType;

        return $this;
    }

    /**
     * Get scheduleType
     *
     * @return \Lims\MainBundle\Entity\ScheduleType 
     */
    public function getScheduleType()
    {
        return $this->scheduleType;
    }

    /**
     * Set createdUser
     *
     * @param \Lims\MainBundle\Entity\Users $createdUser
     * @return CreditSchedule
     */
    public function setCreatedUser(\Lims\MainBundle\Entity\Users $createdUser = null)
    {
        $this->createdUser = $createdUser;

        return $this;
    }

    /**
     * Get createdUser
     *
     * @return \Lims\MainBundle\Entity\Users 
     */
    public function getCreatedUser()
    {
        return $this->createdUser;
    }
    
    public function getBalance() {
        return $this->balance;
    }

    public function setBalance($balance) {
        $this->balance = $balance;
    }


}
